package com.qf.service.impl;

import com.qf.dao.OrderMapper;
import com.qf.pojo.Order;
import com.qf.pojo.SelectOrderAll;
import com.qf.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderMapper orderMapper;


    @Override
    public Integer addOrder(Order order) {
        return orderMapper.addOrder(order);
    }

    @Override
    public List<SelectOrderAll> selectAllOrder(Integer id) {
        return orderMapper.selectAllOrder(id);
    }

    @Override
    public Integer delOrder(Integer id) {
        return orderMapper.delOrder(id);
    }
}
